<%-- 
    Document   : view_prestasiLengkap
    Created on : Feb 10, 2014, 10:40:29 AM
    Author     : Muhammad Dony
--%>

<%@page import="java.util.List"%>
<%@page import="data.PrestasiData"%>
<%@page import="database.PrestasiDB"%>
<%@include file="../Admin/header_admin.jsp" %>
<script src="res/js/jquery.dataTables.js"></script>
<script src="res/js/bootstrap.dataTables.js"></script>
<link href="res/css/dataTables.css" type="text/css"/>
<style>.pagination{margin:0}</style>
<div class="row">
    <div class="col-lg-6 col-lg-push-1">
        <%
                    List listprestasi = (List) request.getAttribute("listprestasi");
                    int n = 1;                  
                %>
        <table id="table" cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered">
            <thead>
            <tbody>
            <th>No</th>
            <th>Prestasi</th>
            <th>Kegiatan</th>
            <th>Tingkat</th>
            <th>Tahun</th>
            </thead>
            <tbody>
                
                <% for (int i = 0; i < listprestasi.size(); i++) {
                        PrestasiData data1 = (PrestasiData) listprestasi.get(i);
                        if (data1.getKategori().equals("1")) {
                        

                %>
                <tr>
                    <td><%=n++%></td>
                    <td><%=data1.getPrestasi()%></td>
                    <td><%=data1.getKegiatan()%></td>
                    <td><%=data1.getTingkat()%></td>
                    <td><%=data1.getTahun()%></td>
                </tr>
                <% }
                        }%>
            </tbody>
        </table>
            
       <table id="table" cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered">
            <thead>
            <tbody>
            <th>No</th>
            <th>Prestasi</th>
            <th>Kegiatan</th>
            <th>Tingkat</th>
            <th>Tahun</th>
            <th>Status</th>
            </thead>
            <tbody>
                
                <%  n = 1;
                for (int i = 0; i < listprestasi.size(); i++) {
                        PrestasiData data1 = (PrestasiData) listprestasi.get(i);
                        if (data1.getKategori().equals("2")) {
                        

                %>
                <tr>
                    <td><%=n++%></td>
                    <td><%=data1.getPrestasi()%></td>
                    <td><%=data1.getKegiatan()%></td>
                    <td><%=data1.getTingkat()%></td>
                    <td><%=data1.getTahun()%></td>
                </tr>
                <% }
                        }%>
            </tbody>
        </table>     
    </div>
</div>
<%@include file="../Admin/footer_admin.jsp" %>